package a.j;

import a.c.ab;
import a.c.bb;
import a.c.d;
import a.c.e;
import a.c.k;
import a.c.m;
import a.c.q;
import a.c.w;
import a.c.y;
import a.i.p;
import a.j.a.b;
import a.j.a.j;

import java.awt.*;
import java.awt.event.MouseEvent;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.util.EventObject;
import java.util.HashSet;
import java.util.Iterator;

public class qf
  extends gf
{
  private sc m;
  private boolean G;
  private boolean H;
  private int I;
  protected e J;
  static final int K = -1;
  static final int L = 0;
  static final int M = 1;
  static final int N = 2;
  static final int O = 3;
  static final int P = 4;
  static final int Q = 5;
  static final int R = 6;
  static final int S = 7;
  static final int T = 8;
  static final int U = 9;
  static final int V = 10;
  static final int W = 11;
  static final int X = 12;
  static final int Y = 13;
  static final int Z = 14;
  private double ab;
  private double bb;
  private Cursor cb = Cursor.getPredefinedCursor(0);
  protected gf db;
  protected gf eb;
  protected gf fb;
  protected gf gb;
  protected gf hb;
  protected gf ib;
  protected gf jb;
  protected gf kb;
  protected gf lb;
  protected uf mb;
  protected gf nb;
  boolean ob = true;
  boolean pb = true;
  boolean qb = true;
  boolean rb = true;
  boolean sb = true;
  boolean tb = true;
  boolean ub = true;
  boolean vb = false;
  boolean wb = true;
  boolean xb = true;
  boolean yb = true;
  boolean zb = true;
  boolean Ab;
  boolean Bb;
  boolean Cb;
  boolean Db;
  public static final Object Eb = "y.view.EditMode.ORTHOGONAL_ROUTING_DPKEY";
  private p Fb;
  private boolean Gb;
  private PropertyChangeListener Hb;
  private boolean Ib = true;
  private boolean Jb = true;
  private int Kb = 10;
  private boolean Lb = true;
  private boolean Mb;
  private boolean Nb = true;
  private boolean Ob;
  private sc Pb;
  private int Qb = 2;
  private static final int Rb = 1;
  private static final int Sb = 2;
  private static final int Tb = 4;
  private static final int Ub = 8;
  private static final int Vb = 16;
  private static final int Wb = 32;
  private static final int Xb = 64;
  private gf Yb;
  public static boolean Zb;
  
  public qf(df paramdf)
  {
    super(paramdf);
    a("EDIT_MODE");
    v();
  }
  
  public qf()
  {
    a("EDIT_MODE");
    v();
  }
  
  private void v()
  {
    this.eb = x();
    this.fb = F();
    this.gb = D();
    this.hb = C();
    this.ib = B();
    this.jb = z();
    this.db = G();
    this.kb = H();
    this.lb = A();
    this.mb = y();
    this.nb = I();
  }
  
  public boolean w()
  {
    return this.Jb;
  }
  
  public void g(boolean paramBoolean)
  {
    this.Jb = paramBoolean;
  }
  
  public void h(boolean paramBoolean)
  {
    boolean bool = ld.E;
    if (!bool) {
      if ((ob() instanceof rf)) {
        ((rf)ob()).g(paramBoolean);
      }
    }
    Object localObject;
    if (!bool) {
      if ((fb() instanceof yf))
      {
        localObject = (yf)fb();
        ((yf)localObject).h(paramBoolean);
        ((yf)localObject).x().f(paramBoolean);
        ((yf)localObject).x().c(paramBoolean);
      }
    }
    if (!bool) {
      if ((rb() instanceof cg))
      {
        localObject = (cg)rb();
        ((cg)localObject).j(paramBoolean);
        ((cg)localObject).z().a(paramBoolean);
      }
    }
    if (!bool) {
      if ((hb() instanceof pf))
      {
        localObject = (pf)hb();
        ((pf)localObject).c(paramBoolean ? 5.0D : 0.0D);
        ((pf)localObject).k(paramBoolean);
      }
    }
    if ((bool) || ((nb() instanceof xf)))
    {
      localObject = (xf)nb();
      ((xf)localObject).j(paramBoolean);
    }
  }
  
  protected gf x()
  {
    return new rf();
  }
  
  protected uf y()
  {
    return new uf();
  }
  
  protected gf z()
  {
    return new xf();
  }
  
  protected gf A()
  {
    return new ag();
  }
  
  protected gf B()
  {
    return new vf();
  }
  
  protected gf C()
  {
    return new yf();
  }
  
  protected gf D()
  {
    return new pf();
  }
  
  protected gf F()
  {
    return new lf();
  }
  
  protected gf G()
  {
    return null;
  }
  
  protected gf H()
  {
    return null;
  }
  
  protected gf I()
  {
    return new wf();
  }
  
  public void b(boolean paramBoolean)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if (!bool2)
    {
      if (!paramBoolean)
      {
        gf localgf = i();
        do
        {
          if (localgf == null) {
            break;
          }
          localgf.b(paramBoolean);
          localgf = localgf.i();
          if ((!bool2) && (bool1)) {
            break label87;
          }
        } while (!bool1);
        if (!bool2)
        {
          if (bool2) {
            break label151;
          }
          if (k().c(Eb) == this.Fb) {
            k().j(Eb);
          }
        }
        label87:
        if (bool2) {
          break label118;
        }
        if (this.Hb != null)
        {
          this.i.removePropertyChangeListener("Graph2D", this.Hb);
          this.Hb = null;
        }
      }
      label118:
      super.b(paramBoolean);
      if (bool2) {}
    }
    else
    {
      if (!paramBoolean) {
        return;
      }
      b(this.i);
    }
    if (!bool2)
    {
      if (e(k()) == null)
      {
        label151:
        this.Hb = new PropertyChangeListener()
        {
          public void propertyChange(PropertyChangeEvent paramAnonymousPropertyChangeEvent)
          {
            boolean bool = ld.E;
            q localq = (q)paramAnonymousPropertyChangeEvent.getOldValue();
            if ((bool) || (localq != null))
            {
              if (bool) {
                break label65;
              }
              if (localq.c(qf.Eb) == qf.this.Fb) {
                localq.j(qf.Eb);
              }
            }
            if ((bool) || (qf.e(qf.this.i.a()) == null)) {
              label65:
              qf.this.i.a().a(qf.Eb, qf.this.Fb);
            }
          }
        };
        this.i.addPropertyChangeListener("Graph2D", this.Hb);
      }
    }
    else {
      k().a(Eb, this.Fb = new p()
      {
        public boolean getBool(Object paramAnonymousObject)
        {
          if (!ld.E) {
            if ((paramAnonymousObject instanceof d))
            {
              d locald = (d)paramAnonymousObject;
              return qf.this.a(locald);
            }
          }
          return false;
        }
      });
    }
  }
  
  public void b()
    throws UnsupportedOperationException
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    do
    {
      gf localgf = i();
      while (!bool1)
      {
        if (localgf == null) {
          break;
        }
        if (!bool2)
        {
          if (localgf.a()) {
            localgf.b();
          }
          localgf = localgf.i();
        }
      }
      super.b();
    } while (bool2);
  }
  
  public void a(gf paramgf, MouseEvent paramMouseEvent1, MouseEvent paramMouseEvent2, MouseEvent paramMouseEvent3)
  {
    boolean bool = ld.E;
    gf localgf = i();
    super.a(paramgf, paramMouseEvent1, paramMouseEvent2, paramMouseEvent3);
    if ((bool) || ((localgf != null) && (paramgf == null))) {
      if (!bool)
      {
        if (!this.Ob) {
          this.Ob = true;
        }
      }
      else {
        try
        {
          MouseEvent localMouseEvent = this.i.i();
          if (!bool) {
            if ((localMouseEvent != null) && (localMouseEvent.getID() != 505)) {
              mouseMoved(new MouseEvent(this.i.B(), 503, localMouseEvent.getWhen() + 1L, 0, localMouseEvent.getX(), localMouseEvent.getY(), 0, false));
            }
          }
        }
        finally
        {
          this.Ob = false;
        }
      }
    }
  }
  
  protected void b(pg parampg)
  {
    if (this.Jb) {
      parampg.a(20, 30);
    }
    parampg.a(qb());
    parampg.b();
  }
  
  public void i(boolean paramBoolean)
  {
    this.Cb = paramBoolean;
  }
  
  public boolean J()
  {
    return this.Cb;
  }
  
  public void j(boolean paramBoolean)
  {
    this.Gb = paramBoolean;
  }
  
  public boolean K()
  {
    return this.Gb;
  }
  
  public void k(boolean paramBoolean)
  {
    this.xb = paramBoolean;
  }
  
  public void l(boolean paramBoolean)
  {
    this.ob = paramBoolean;
  }
  
  public void m(boolean paramBoolean)
  {
    this.yb = paramBoolean;
  }
  
  public void n(boolean paramBoolean)
  {
    this.pb = paramBoolean;
  }
  
  public void o(boolean paramBoolean)
  {
    this.qb = paramBoolean;
    if ((ld.E) || ((this.gb instanceof pf))) {
      ((pf)this.gb).m(paramBoolean);
    }
  }
  
  public void p(boolean paramBoolean)
  {
    this.sb = paramBoolean;
  }
  
  public void q(boolean paramBoolean)
  {
    this.rb = paramBoolean;
  }
  
  public void r(boolean paramBoolean)
  {
    this.wb = paramBoolean;
  }
  
  public void s(boolean paramBoolean)
  {
    this.Ib = paramBoolean;
  }
  
  public void t(boolean paramBoolean)
  {
    this.ub = paramBoolean;
  }
  
  public void u(boolean paramBoolean)
  {
    this.vb = paramBoolean;
  }
  
  public void v(boolean paramBoolean)
  {
    this.tb = paramBoolean;
  }
  
  public void w(boolean paramBoolean)
  {
    this.zb = paramBoolean;
  }
  
  public boolean L()
  {
    return this.xb;
  }
  
  public boolean M()
  {
    return this.ob;
  }
  
  public boolean O()
  {
    return this.yb;
  }
  
  public boolean P()
  {
    return this.pb;
  }
  
  public boolean Q()
  {
    return this.qb;
  }
  
  public boolean R()
  {
    return this.Ib;
  }
  
  public boolean S()
  {
    return this.rb;
  }
  
  public boolean T()
  {
    return this.wb;
  }
  
  public boolean U()
  {
    return this.zb;
  }
  
  public boolean V()
  {
    return this.sb;
  }
  
  public boolean W()
  {
    return (ld.E) || ((this.ub) && (this.db == null));
  }
  
  public boolean X()
  {
    return this.vb;
  }
  
  public boolean Y()
  {
    return this.tb;
  }
  
  public void x(boolean paramBoolean)
  {
    boolean bool = ld.E;
    this.Ab = paramBoolean;
    if (((bool) || (!this.Ab)) && ((bool) || (this.i != null))) {
      this.i.setToolTipText(null);
    }
  }
  
  public boolean Z()
  {
    return this.Ab;
  }
  
  public void y(boolean paramBoolean)
  {
    boolean bool = ld.E;
    this.Bb = paramBoolean;
    if (((bool) || (!this.Bb)) && ((bool) || (this.i != null))) {
      this.i.setToolTipText(null);
    }
  }
  
  public boolean ab()
  {
    return this.Bb;
  }
  
  public void z(boolean paramBoolean)
  {
    if (!ld.E)
    {
      this.Db = paramBoolean;
      if (paramBoolean) {}
    }
    else
    {
      this.Pb = null;
    }
  }
  
  public boolean bb()
  {
    return this.Db;
  }
  
  public void d(int paramInt)
  {
    this.Qb = paramInt;
  }
  
  public int cb()
  {
    return this.Qb;
  }
  
  public gf db()
  {
    return this.kb;
  }
  
  public void c(gf paramgf)
  {
    this.kb = paramgf;
  }
  
  public gf eb()
  {
    return this.db;
  }
  
  public void d(gf paramgf)
  {
    this.db = paramgf;
  }
  
  public gf fb()
  {
    return this.hb;
  }
  
  public void e(gf paramgf)
  {
    this.hb = paramgf;
  }
  
  public uf gb()
  {
    return this.mb;
  }
  
  public void a(uf paramuf)
  {
    this.mb = paramuf;
  }
  
  public gf hb()
  {
    return this.gb;
  }
  
  public void f(gf paramgf)
  {
    this.gb = paramgf;
  }
  
  public gf ib()
  {
    return this.fb;
  }
  
  public void g(gf paramgf)
  {
    this.fb = paramgf;
  }
  
  public void mousePressedLeft(double paramDouble1, double paramDouble2)
  {
    b(paramDouble1, paramDouble2);
  }
  
  public void mouseShiftPressedLeft(double paramDouble1, double paramDouble2)
  {
    b(paramDouble1, paramDouble2);
  }
  
  public void mouseReleasedLeft(double paramDouble1, double paramDouble2)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    g localg = k();
    if ((bool2) || (!this.G))
    {
      if (!bool2) {}
      switch (this.I)
      {
      case 7: 
        a(localg, m().p(), false, paramDouble1, paramDouble2, false);
        if (!bool2) {
          if (!bool1) {
            return;
          }
        }
      case 8: 
        a(localg, m().q(), false, paramDouble1, paramDouble2, false);
        if (!bool2) {
          if (!bool1) {
            return;
          }
        }
      case 9: 
        a(localg, m().p(), true, paramDouble1, paramDouble2, false);
        if (!bool2) {
          if (!bool1) {
            return;
          }
        }
      case 10: 
        a(localg, m().q(), true, paramDouble1, paramDouble2, false);
        if (!bool2) {
          if (!bool1) {
            return;
          }
        }
      case 0: 
        a(localg, paramDouble1, paramDouble2, false);
        if (!bool2) {
          if (!bool1) {
            return;
          }
        }
      case 1: 
        a(localg, m().m(), false, paramDouble1, paramDouble2, false);
        if (!bool2) {
          if (!bool1) {
            return;
          }
        }
      case 3: 
        a(localg, m().n(), false, paramDouble1, paramDouble2, false);
        if (!bool2) {
          if (!bool1) {
            return;
          }
        }
      case 5: 
        a(localg, m().o(), false, paramDouble1, paramDouble2, false);
        if (!bool2) {
          if (!bool1) {
            return;
          }
        }
      case 2: 
        a(localg, m().m(), true, paramDouble1, paramDouble2, false);
        if (!bool2) {
          if (!bool1) {
            return;
          }
        }
      case 6: 
        a(localg, m().o(), true, paramDouble1, paramDouble2, false);
        if (!bool2) {
          if (!bool1) {
            return;
          }
        }
      case 4: 
        a(localg, m().n(), true, paramDouble1, paramDouble2, false);
        if (!bool2) {
          if (!bool1) {
            return;
          }
        }
      case 13: 
        a(localg, m().s(), false, paramDouble1, paramDouble2, false);
        if (!bool2) {
          if (!bool1) {
            return;
          }
        }
      case 14: 
        a(localg, m().s(), true, paramDouble1, paramDouble2, false);
        break;
      }
    }
  }
  
  private void jb()
  {
    boolean bool = ld.E;
    if ((bool) || ((bb()) && ((bool) || (kb())))) {
      a(this.Pb.d());
    }
  }
  
  protected void a(g paramg, hg paramhg, boolean paramBoolean1, double paramDouble1, double paramDouble2, boolean paramBoolean2)
  {
    boolean bool3 = ld.E;
    boolean bool2 = ld.D;
    boolean bool1 = R();
    if (!bool3)
    {
      if (paramBoolean2)
      {
        if (bool3) {
          break label123;
        }
        if (bool1)
        {
          jb();
          if (!bool3)
          {
            if (paramBoolean1)
            {
              a(paramg, paramhg, false);
              if (bool3) {
                break label109;
              }
              if (!bool2) {
                break label103;
              }
            }
            if (bool3) {}
          }
          else if (!J())
          {
            if ((!bool3) && (a(paramg, -49))) {
              break label103;
            }
          }
          a(paramg, paramhg, true);
          label103:
          paramg.gb();
          label109:
          if (bool3) {
            break label123;
          }
          if (!bool2) {
            return;
          }
        }
      }
      a(paramhg);
    }
    label123:
    if ((bool3) || ((!paramBoolean1) && (bool1)))
    {
      c(paramg);
      a(paramg, paramhg, true);
      paramg.gb();
    }
  }
  
  protected void a(hg paramhg) {}
  
  public void mouseShiftReleasedLeft(double paramDouble1, double paramDouble2)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    g localg = k();
    if ((bool2) || (!this.G))
    {
      if (!bool2) {}
      switch (this.I)
      {
      case 7: 
        a(localg, m().p(), false, paramDouble1, paramDouble2, true);
        if (!bool2) {
          if (!bool1) {
            return;
          }
        }
      case 8: 
        a(localg, m().q(), false, paramDouble1, paramDouble2, true);
        if (!bool2) {
          if (!bool1) {
            return;
          }
        }
      case 9: 
        a(localg, m().p(), true, paramDouble1, paramDouble2, true);
        if (!bool2) {
          if (!bool1) {
            return;
          }
        }
      case 10: 
        a(localg, m().q(), true, paramDouble1, paramDouble2, true);
        if (!bool2) {
          if (!bool1) {
            return;
          }
        }
      case 0: 
        a(localg, paramDouble1, paramDouble2, true);
        if (!bool2) {
          if (!bool1) {
            return;
          }
        }
      case 1: 
        a(localg, m().m(), false, paramDouble1, paramDouble2, true);
        if (!bool2) {
          if (!bool1) {
            return;
          }
        }
      case 3: 
        a(localg, m().n(), false, paramDouble1, paramDouble2, true);
        if (!bool2) {
          if (!bool1) {
            return;
          }
        }
      case 5: 
        a(localg, m().o(), false, paramDouble1, paramDouble2, true);
        if (!bool2) {
          if (!bool1) {
            return;
          }
        }
      case 6: 
        a(localg, m().o(), true, paramDouble1, paramDouble2, true);
        if (!bool2) {
          if (!bool1) {
            return;
          }
        }
      case 4: 
        a(localg, m().n(), true, paramDouble1, paramDouble2, true);
        if (!bool2) {
          if (!bool1) {
            return;
          }
        }
      case 2: 
        a(localg, m().m(), true, paramDouble1, paramDouble2, true);
        if (!bool2) {
          if (!bool1) {
            return;
          }
        }
      case 13: 
        a(localg, m().s(), false, paramDouble1, paramDouble2, true);
        if (!bool2) {
          if (!bool1) {
            return;
          }
        }
      case 14: 
        a(localg, m().s(), true, paramDouble1, paramDouble2, true);
        break;
      }
    }
  }
  
  protected void a(g paramg, jd paramjd, boolean paramBoolean1, double paramDouble1, double paramDouble2, boolean paramBoolean2)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if (!bool2) {
      if (paramBoolean2)
      {
        if (!bool2)
        {
          if (paramBoolean1)
          {
            a(paramg, paramjd, false);
            if (bool2) {
              break label89;
            }
            if (!bool1) {
              break label83;
            }
          }
          if (bool2) {}
        }
        else if (!J())
        {
          if ((!bool2) && (a(paramg, -65))) {
            break label83;
          }
        }
        a(paramg, paramjd, true);
        label83:
        paramg.gb();
      }
    }
    label89:
    if ((bool2) || ((bool1) && (!paramBoolean1)))
    {
      c(paramg);
      a(paramg, paramjd, true);
      paramg.gb();
    }
  }
  
  private boolean a(g paramg, int paramInt)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if (!bool2) {}
    int i = (paramInt & 0x1) == 1 ? 1 : 0;
    if (!bool2) {}
    int j = (paramInt & 0x10) == 16 ? 1 : 0;
    if (!bool2) {}
    int k = (paramInt & 0x40) == 64 ? 1 : 0;
    label157:
    label235:
    Object localObject;
    if (((bool2) || (i == 0)) && ((bool2) || (j == 0)))
    {
      if (bool2) {
        break label319;
      }
      if (k == 0) {}
    }
    else
    {
      w localw = paramg.v();
      label313:
      label315:
      do
      {
        do
        {
          if (!localw.e()) {
            break label318;
          }
          e locale = localw.d();
          if (bool2) {
            break label327;
          }
          if (bool1) {
            break label326;
          }
          if (i != 0)
          {
            if (bool2) {
              break label157;
            }
            if (b(paramg, locale)) {
              return true;
            }
          }
          if (j != 0)
          {
            localld = paramg.w(locale);
            if ((bool2) || (localld.x() > 0))
            {
              int i3 = 0;
              int i4 = localld.x();
              do
              {
                if (i3 >= i4) {
                  break;
                }
                if (bool1) {
                  break label235;
                }
                if (a(paramg, localld.b(i3))) {
                  return true;
                }
                i3++;
              } while (!bool1);
            }
          }
          if (bool2) {
            break label313;
          }
          if (k == 0) {
            break;
          }
          ld localld = paramg.w(locale);
          if (bool2) {
            break label315;
          }
          if (localld.y() <= 0) {
            break;
          }
          localObject = localld.z();
          do
          {
            if (!((Iterator)localObject).hasNext()) {
              break;
            }
          } while (!a(paramg, (jd)((Iterator)localObject).next()));
          if (bool2) {
            break label320;
          }
        } while (bool1);
        return true;
        localw.f();
      } while (!bool1);
    }
    label318:
    label319:
    label320:
    if (!bool2) {}
    label326:
    label327:
    if (!bool2)
    {
      if ((paramInt & 0x2) == 2) {
        break label347;
      }
      if (bool2) {
        break label348;
      }
    }
    label347:
    label348:
    int n = (paramInt & 0x4) == 4 ? 1 : 0;
    if (!bool2) {}
    int i1 = (paramInt & 0x20) == 32 ? 1 : 0;
    if (!bool2) {}
    int i2 = (paramInt & 0x8) == 8 ? 1 : 0;
    label553:
    if (((!bool2) && (n != 0)) || ((bool2) || ((i1 != 0) || (i2 != 0))))
    {
      localObject = paramg.w();
      label475:
      label628:
      do
      {
        do
        {
          if (!((m)localObject).e()) {
            break label645;
          }
          d locald = ((m)localObject).a();
          if (bool1) {
            break label646;
          }
          if (n != 0)
          {
            if (bool2) {
              break label475;
            }
            if (a(paramg, locald)) {
              return true;
            }
          }
          tb localtb;
          if (i1 != 0)
          {
            localtb = paramg.t(locald);
            if ((bool2) || (localtb.V() > 0))
            {
              int i5 = 0;
              int i6 = localtb.V();
              do
              {
                if (i5 >= i6) {
                  break;
                }
                if (bool1) {
                  break label553;
                }
                if (a(paramg, localtb.d(i5))) {
                  return true;
                }
                i5++;
              } while (!bool1);
            }
          }
          if (!bool2)
          {
            if (i2 != 0)
            {
              localtb = paramg.t(locald);
              if (bool2) {
                break;
              }
              if (localtb.n() > 0)
              {
                fb localfb = localtb.o();
                do
                {
                  if (!localfb.e()) {
                    break label628;
                  }
                  if (bool1) {
                    break;
                  }
                  if (a(paramg, localfb.a())) {
                    return true;
                  }
                  localfb.f();
                } while (!bool1);
              }
            }
            ((m)localObject).f();
          }
        } while (bool2);
      } while (!bool1);
    }
    label645:
    label646:
    return false;
  }
  
  protected void a(g paramg, e parame, boolean paramBoolean1, double paramDouble1, double paramDouble2, boolean paramBoolean2)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if (!bool2)
    {
      if (tb())
      {
        if (bool2) {
          break label64;
        }
        if (a(paramg, parame))
        {
          if (bool2) {
            break label190;
          }
          if (!isGroupNodeBorderHit(paramg, parame, paramDouble1, paramDouble2, isSelectOnGroupNodeLabelEnabled())) {
            break label189;
          }
        }
      }
      jb();
    }
    label64:
    if (!bool2) {
      if (paramBoolean2)
      {
        if (!bool2)
        {
          if (paramBoolean1)
          {
            a(paramg, parame, false);
            if (bool2) {
              break label141;
            }
            if (!bool1) {
              break label135;
            }
          }
          if (bool2) {}
        }
        else if (!J())
        {
          if ((!bool2) && (a(paramg, -10))) {
            break label135;
          }
        }
        a(paramg, parame, true);
        paramg.gb();
        if (!bool2) {
          if (!bool1) {
            return;
          }
        }
      }
      else
      {
        b(parame);
      }
    }
    label135:
    label141:
    if (!bool2)
    {
      if (paramBoolean1) {
        return;
      }
      c(paramg);
      if (!bool2)
      {
        a(paramg, parame, true);
        paramg.gb();
      }
    }
    else if (!bool1)
    {
      return;
    }
    label189:
    label190:
    b(parame);
  }
  
  protected void a(y paramy)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if (((bool2) || (paramy != null)) && (paramy.e()))
    {
      g localg = k();
      paramy.f();
      if (paramy.e())
      {
        a(localg, paramy.j(), false);
        paramy.f();
      }
      for (;;)
      {
        if ((bool2) || (!bool1))
        {
          if (!bool1) {
            break;
          }
          if (!bool2) {
            localg.gb();
          }
        }
      }
    }
  }
  
  protected boolean isGroupNodeBorderHit(g paramg, e parame, double paramDouble1, double paramDouble2, boolean paramBoolean)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if (!bool2) {
      if (a(paramg, parame))
      {
        ld localld = paramg.w(parame);
        if (!bool2) {
          if (paramBoolean)
          {
            sc localsc = d(paramDouble1, paramDouble2);
            y localy = localsc.i();
            do
            {
              if (!localy.e()) {
                break;
              }
              jg localjg = (jg)localy.j();
              if (bool2) {
                break label232;
              }
              if (bool1) {
                break label231;
              }
              if (((bool2) || (localjg.gb() == parame)) && (localld.b(0) == localjg)) {
                return true;
              }
              localy.f();
            } while (!bool1);
          }
        }
        int i = getGroupBorderWidth();
        if (bool2) {
          break label232;
        }
        if (!bool2) {
          if (paramDouble1 >= localld.a() + i)
          {
            if (bool2) {
              break label230;
            }
            if (paramDouble1 <= localld.a() + localld.c() - i)
            {
              if (bool2) {
                break label230;
              }
              if (paramDouble2 >= localld.b() + i)
              {
                if (bool2) {
                  break label232;
                }
                if (paramDouble2 <= localld.b() + localld.d() - i) {
                  break label231;
                }
              }
            }
          }
        }
        label230:
        return true;
      }
    }
    label231:
    label232:
    return false;
  }
  
  private boolean a(g paramg, e parame)
  {
    boolean bool = ld.E;
    j localj = j.a(paramg);
    if ((bool) || (localj != null)) {
      if (bool) {}
    }
    return localj.m(parame);
  }
  
  protected void a(g paramg, eb parameb, boolean paramBoolean1, double paramDouble1, double paramDouble2, boolean paramBoolean2)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    jb();
    if (!bool2) {
      if (paramBoolean2)
      {
        if (!bool2) {
          if (paramBoolean1)
          {
            a(paramg, parameb, false);
            if (bool2) {
              break label157;
            }
            if (!bool1) {
              break label151;
            }
          }
        }
        if (!bool2)
        {
          if (!J())
          {
            if (bool2) {
              break label126;
            }
            if (a(paramg, 2))
            {
              if (!bool2) {}
              a(paramg, parameb.a(), !a(paramg, parameb.a()));
              if (bool2) {
                break label157;
              }
              if (!bool1) {
                break label151;
              }
            }
          }
          if (bool2) {
            break label145;
          }
        }
        if (!J())
        {
          label126:
          if (bool2) {
            break label157;
          }
          if (a(paramg, -10)) {}
        }
        else
        {
          label145:
          a(paramg, parameb, true);
        }
        label151:
        paramg.gb();
      }
    }
    label157:
    if ((bool2) || ((bool1) && (!paramBoolean1)))
    {
      c(paramg);
      a(paramg, parameb, true);
      paramg.gb();
    }
  }
  
  protected void a(g paramg, d paramd, boolean paramBoolean1, double paramDouble1, double paramDouble2, boolean paramBoolean2)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    jb();
    if (!bool2) {
      if (paramBoolean2)
      {
        if (!bool2) {
          if (paramBoolean1)
          {
            a(paramg, paramd, false);
            if ((!bool2) && (!bool1)) {
              break label320;
            }
          }
        }
        if (!bool2)
        {
          if (!J())
          {
            if (bool2) {
              break label295;
            }
            if (a(paramg, 9))
            {
              if (bool2) {
                break label321;
              }
              tb localtb = paramg.t(paramd);
              if (localtb.n() <= 0) {
                break label320;
              }
              int i = 0;
              fb localfb = localtb.o();
              do
              {
                if (!localfb.e()) {
                  break;
                }
                if (bool2) {
                  break label169;
                }
                if (bool1) {
                  break label164;
                }
                if (a(paramg, localfb.a())) {
                  i++;
                }
                localfb.f();
              } while (!bool1);
              label164:
              if ((!bool2) && (i == localtb.n()))
              {
                label169:
                localfb = localtb.o();
                do
                {
                  if (!localfb.e()) {
                    break;
                  }
                  a(paramg, localfb.a(), false);
                  localfb.f();
                  if (bool2) {
                    break label326;
                  }
                  if (bool1) {
                    break label324;
                  }
                } while (!bool1);
              }
              if (bool2) {
                break label324;
              }
              localfb = localtb.o();
              do
              {
                if (!localfb.e()) {
                  break;
                }
                a(paramg, localfb.a(), true);
                localfb.f();
                if (bool2) {
                  break label326;
                }
                if (bool1) {
                  break label324;
                }
              } while (!bool1);
            }
          }
          if (bool2) {
            break label314;
          }
          if (bool2) {
            break label326;
          }
        }
        if (!J()) {
          label295:
          if ((!bool2) && (a(paramg, -7))) {}
        } else {
          label314:
          a(paramg, paramd, true);
        }
        label320:
        label321:
        paramg.gb();
      }
    }
    label324:
    label326:
    if ((bool2) || ((bool1) && (!paramBoolean1)))
    {
      c(paramg);
      a(paramg, paramd, true);
      paramg.gb();
    }
  }
  
  protected void a(g paramg, double paramDouble1, double paramDouble2, boolean paramBoolean)
  {
    boolean bool = ld.E;
    if (((bool) || (!paramBoolean)) && ((bool) || ((!bb()) || ((bool) || (!kb())))))
    {
      if (!bool) {
        if (!d(paramg))
        {
          c(paramg);
          paramg.gb();
          if (!bool) {
            if (!ld.D) {
              return;
            }
          }
        }
        else
        {
          if (bool) {
            break label93;
          }
        }
      }
      if (M())
      {
        a(true);
        label93:
        e locale = a(paramg, paramDouble1, paramDouble2);
        if (!bool)
        {
          if (locale != null) {
            paramg.gb();
          }
        }
        else {
          a(locale);
        }
        a(false);
      }
    }
  }
  
  public void mousePressed(MouseEvent paramMouseEvent)
  {
    if (!ld.E) {
      if (i() != null) {
        this.I = -1;
      }
    }
    super.mousePressed(paramMouseEvent);
  }
  
  public void mouseDraggedLeft(double paramDouble1, double paramDouble2)
  {
    boolean bool3 = ld.E;
    boolean bool2 = ld.D;
    g localg = k();
    a(paramDouble1, paramDouble2);
    if (!bool3) {}
    boolean bool1 = !this.G;
    this.G = true;
    if (!bool3) {
      switch (this.I)
      {
      case -1: 
      default: 
        if (!bool3) {
          if (!bool2) {
            return;
          }
        }
      case 0: 
        c(localg, paramDouble1, paramDouble2, bool1);
        if (!bool3) {
          if (!bool2) {
            return;
          }
        }
      case 1: 
        b(localg, this.m.m(), false, paramDouble1, paramDouble2, bool1);
        if (!bool3) {
          if (!bool2) {
            return;
          }
        }
      case 2: 
        b(localg, this.m.m(), true, paramDouble1, paramDouble2, bool1);
        if (!bool3) {
          if (!bool2) {
            return;
          }
        }
      case 3: 
        b(localg, this.m.n(), false, paramDouble1, paramDouble2, bool1);
        if (!bool3) {
          if (!bool2) {
            return;
          }
        }
      case 4: 
        b(localg, this.m.n(), true, paramDouble1, paramDouble2, bool1);
        if (!bool3) {
          if (!bool2) {
            return;
          }
        }
      case 7: 
        a(localg, this.m.p(), false, paramDouble1, paramDouble2, bool1);
        if (!bool3) {
          if (!bool2) {
            return;
          }
        }
      case 9: 
        a(localg, this.m.p(), true, paramDouble1, paramDouble2, bool1);
        if (!bool3) {
          if (!bool2) {
            return;
          }
        }
      case 8: 
        a(localg, this.m.q(), false, paramDouble1, paramDouble2, bool1);
        if (!bool3) {
          if (!bool2) {
            return;
          }
        }
      case 10: 
        a(localg, this.m.q(), true, paramDouble1, paramDouble2, bool1);
        if (!bool3) {
          if (!bool2) {
            return;
          }
        }
      case 5: 
        b(localg, this.m.o(), false, paramDouble1, paramDouble2, bool1);
        if (!bool3) {
          if (!bool2) {
            return;
          }
        }
      case 6: 
        b(localg, this.m.o(), true, paramDouble1, paramDouble2, bool1);
        if (!bool3) {
          if (!bool2) {
            return;
          }
        }
      case 11: 
        b(localg, paramDouble1, paramDouble2, bool1);
        if (!bool3) {
          if (!bool2) {
            return;
          }
        }
      case 12: 
        a(localg, this.m.r(), paramDouble1, paramDouble2, bool1);
        if (!bool3) {
          if (!bool2) {
            return;
          }
        }
      case 13: 
        if (!bool3)
        {
          b(localg, this.m.s(), false, paramDouble1, paramDouble2, bool1);
          if (!bool2) {
            return;
          }
        }
        break;
      }
    }
    b(localg, this.m.s(), true, paramDouble1, paramDouble2, bool1);
  }
  
  protected void b(g paramg, eb parameb, boolean paramBoolean1, double paramDouble1, double paramDouble2, boolean paramBoolean2)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if (!bool2) {
      if (paramBoolean1)
      {
        if (!paramBoolean2) {
          return;
        }
        localgf = fb();
        if (((bool2) || ((d(paramg)) || (!bool2))) && ((!V()) || (localgf == null))) {
          return;
        }
        a(localgf, this.s, this.t);
        if ((!bool2) && (!bool1)) {
          return;
        }
      }
    }
    if (!bool2)
    {
      if (!paramBoolean2) {
        return;
      }
      if (bool2) {}
    }
    else if (J())
    {
      a(paramg);
      b(paramg);
      if (bool2) {
        break label138;
      }
      if (!bool1) {
        break label131;
      }
    }
    c(paramg);
    label131:
    a(paramg, parameb, true);
    label138:
    gf localgf = fb();
    if ((bool2) || ((V()) && (localgf != null))) {
      a(localgf, this.s, this.t);
    }
  }
  
  protected void b(g paramg, d paramd, boolean paramBoolean1, double paramDouble1, double paramDouble2, boolean paramBoolean2)
  {
    boolean bool = ld.E;
    if (!bool) {
      if ((paramBoolean2) && (paramd != null))
      {
        if (bool) {
          break label63;
        }
        if (a(paramd))
        {
          if (bool) {
            break label63;
          }
          if (V())
          {
            a(rb(), this.s, this.t);
            return;
          }
        }
      }
    }
    label63:
    if (!bool)
    {
      if (!paramBoolean2) {
        return;
      }
      if (bool) {}
    }
    else
    {
      if (!Q()) {
        return;
      }
      c(paramg);
      paramg.gb();
      paramg.a(new ab(paramd).l());
    }
    eb localeb = a(paramg, paramd, this.ab, this.bb);
    if (!bool)
    {
      if (localeb != null)
      {
        a(paramg, localeb, true);
        a(paramg, paramd, localeb, this.ab, this.bb);
      }
    }
    else if ((bool) || (V())) {
      a(fb(), this.s, this.t);
    }
  }
  
  protected void b(g paramg, double paramDouble1, double paramDouble2, boolean paramBoolean)
  {
    gf localgf = ob();
    if (localgf != null) {
      a(localgf, this.s, this.t);
    }
  }
  
  protected void a(g paramg, ig paramig, boolean paramBoolean1, double paramDouble1, double paramDouble2, boolean paramBoolean2)
  {
    boolean bool = ld.E;
    gf localgf = mb();
    if (((!bool) && ((paramBoolean2) && (bool))) || ((S()) && (localgf != null))) {
      a(localgf, this.s, this.t);
    }
  }
  
  protected void a(g paramg, jg paramjg, boolean paramBoolean1, double paramDouble1, double paramDouble2, boolean paramBoolean2)
  {
    boolean bool = ld.E;
    gf localgf = mb();
    if (((!bool) && ((paramBoolean2) && (bool))) || ((S()) && (localgf != null))) {
      a(localgf, this.s, this.t);
    }
  }
  
  protected void b(g paramg, e parame, boolean paramBoolean1, double paramDouble1, double paramDouble2, boolean paramBoolean2)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    gf localgf1;
    if ((bool2) || (paramBoolean1))
    {
      if (!paramBoolean2) {
        return;
      }
      localgf1 = fb();
      if (((bool2) || ((d(paramg)) || (!bool2))) && ((!V()) || (localgf1 == null))) {
        return;
      }
      a(localgf1, this.s, this.t);
      if (!bool2) {
        if (!bool1) {
          return;
        }
      }
    }
    else
    {
      localgf1 = ib();
      if (bool2) {
        break label148;
      }
    }
    if (!a(this.s, this.t))
    {
      if (bool2) {
        break label148;
      }
      if (localgf1 != null)
      {
        if (bool2) {
          break label148;
        }
        a(localgf1, this.s, this.t);
        if (!bool1) {
          return;
        }
      }
    }
    label148:
    gf localgf2 = hb();
    if (!bool2) {
      if ((P()) && (localgf2 != null))
      {
        a(localgf2, this.s, this.t);
        if ((!bool2) && (!bool1)) {
          return;
        }
      }
    }
    if ((bool2) || ((!P()) && (paramBoolean2)))
    {
      gf localgf3 = fb();
      if ((bool2) || ((V()) && (localgf3 != null)))
      {
        c(paramg);
        a(paramg, parame, true);
        a(localgf3, this.s, this.t);
      }
    }
  }
  
  protected void b(g paramg, jd paramjd, boolean paramBoolean1, double paramDouble1, double paramDouble2, boolean paramBoolean2)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    gf localgf1;
    if ((bool2) || (paramBoolean1))
    {
      if (!paramBoolean2) {
        return;
      }
      localgf1 = pb();
      if (!bool2)
      {
        if (localgf1 == null) {
          return;
        }
        a(localgf1, this.s, this.t);
      }
      if (!bool2) {
        if (!bool1) {
          return;
        }
      }
    }
    else
    {
      localgf1 = ib();
      if (bool2) {
        break label128;
      }
    }
    if (!a(this.s, this.t))
    {
      if (bool2) {
        break label128;
      }
      if (localgf1 != null)
      {
        if (bool2) {
          break label128;
        }
        a(localgf1, this.s, this.t);
        if (!bool1) {
          return;
        }
      }
    }
    label128:
    gf localgf2 = hb();
    if (!bool2) {
      if ((P()) && (localgf2 != null))
      {
        a(localgf2, this.s, this.t);
        if ((!bool2) && (!bool1)) {
          return;
        }
      }
    }
    if ((bool2) || ((!P()) && (paramBoolean2)))
    {
      gf localgf3 = pb();
      if (!bool2)
      {
        if (localgf3 != null)
        {
          c(paramg);
          a(paramg, paramjd, true);
        }
      }
      else {
        a(localgf3, this.s, this.t);
      }
    }
  }
  
  protected void c(g paramg, double paramDouble1, double paramDouble2, boolean paramBoolean)
  {
    gf localgf = ib();
    if (localgf != null) {
      a(localgf, this.s, this.t);
    }
  }
  
  protected void a(g paramg, zd paramzd, double paramDouble1, double paramDouble2, boolean paramBoolean)
  {
    gf localgf = nb();
    if ((ld.E) || ((T()) && (localgf != null))) {
      a(localgf, this.s, this.t);
    }
  }
  
  protected void a(g paramg, jd paramjd, boolean paramBoolean)
  {
    paramg.a(paramjd, paramBoolean);
  }
  
  protected void a(g paramg, e parame, boolean paramBoolean)
  {
    boolean bool = ld.E;
    if (!bool)
    {
      if (paramBoolean)
      {
        if (bool) {
          break label32;
        }
        ke.a(paramg, parame);
      }
    }
    else if (!ld.D) {
      return;
    }
    label32:
    ke.b(paramg, parame);
  }
  
  protected void a(g paramg, hg paramhg, boolean paramBoolean)
  {
    paramg.a(paramhg, paramBoolean);
  }
  
  protected void a(g paramg, d paramd, boolean paramBoolean)
  {
    paramg.a(paramd, paramBoolean);
  }
  
  protected void a(g paramg, eb parameb, boolean paramBoolean)
  {
    paramg.a(parameb, paramBoolean);
  }
  
  private void a(g paramg, Object paramObject, boolean paramBoolean)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if (!bool2) {
      if ((paramObject instanceof e))
      {
        a(paramg, (e)paramObject, paramBoolean);
        if ((!bool2) && (!bool1)) {
          return;
        }
      }
    }
    if (!bool2) {
      if ((paramObject instanceof d))
      {
        a(paramg, (d)paramObject, paramBoolean);
        if ((!bool2) && (!bool1)) {
          return;
        }
      }
    }
    if (!bool2) {
      if ((paramObject instanceof eb))
      {
        a(paramg, (eb)paramObject, paramBoolean);
        if ((!bool2) && (!bool1)) {
          return;
        }
      }
    }
    if (!bool2) {
      if ((paramObject instanceof hg)) {
        a(paramg, (hg)paramObject, paramBoolean);
      }
    }
    if ((bool2) || ((bool1) && ((paramObject instanceof jd)))) {
      a(paramg, (jd)paramObject, paramBoolean);
    }
  }
  
  protected void a(g paramg)
  {
    paramg.W();
  }
  
  protected void b(g paramg)
  {
    paramg.Y();
  }
  
  protected void c(g paramg)
  {
    paramg.V();
  }
  
  protected boolean d(g paramg)
  {
    return paramg.P();
  }
  
  protected boolean a(g paramg, eb parameb)
  {
    return paramg.a(parameb);
  }
  
  protected boolean a(g paramg, d paramd)
  {
    return paramg.v(paramd);
  }
  
  protected boolean a(g paramg, hg paramhg)
  {
    return paramg.a(paramhg);
  }
  
  protected boolean b(g paramg, e parame)
  {
    return paramg.y(parame);
  }
  
  protected boolean a(g paramg, jd paramjd)
  {
    return paramg.a(paramjd);
  }
  
  private boolean a(g paramg, Object paramObject)
  {
    boolean bool = ld.E;
    if (!bool) {
      if ((paramObject instanceof e)) {
        return b(paramg, (e)paramObject);
      }
    }
    if (!bool) {
      if ((paramObject instanceof d)) {
        return a(paramg, (d)paramObject);
      }
    }
    if (!bool) {
      if ((paramObject instanceof eb)) {
        return a(paramg, (eb)paramObject);
      }
    }
    if (!bool) {
      if ((paramObject instanceof hg)) {
        return a(paramg, (hg)paramObject);
      }
    }
    if (!bool) {
      if ((paramObject instanceof jd)) {
        return a(paramg, (jd)paramObject);
      }
    }
    return false;
  }
  
  protected boolean a(d paramd)
  {
    boolean bool = ld.E;
    k localk = e(k());
    if (((bool) || (localk != null)) && ((bool) || (localk != this.Fb))) {
      return localk.getBool(paramd);
    }
    return this.Gb;
  }
  
  private static k e(g paramg)
  {
    boolean bool = ld.E;
    k localk = paramg.c(Eb);
    if (!bool) {
      if ((localk == null) && ((bool) || (paramg.K() != null)) && ((bool) || (paramg.K().j() != paramg))) {
        localk = paramg.K().j().c(Eb);
      }
    }
    return localk;
  }
  
  protected eb a(g paramg, d paramd, double paramDouble1, double paramDouble2)
  {
    return paramg.t(paramd).b(paramDouble1, paramDouble2);
  }
  
  protected e a(g paramg, double paramDouble1, double paramDouble2)
  {
    return a(paramg, paramDouble1, paramDouble2, null);
  }
  
  protected e a(g paramg, double paramDouble1, double paramDouble2, e parame)
  {
    boolean bool = ld.E;
    e locale = paramg.a(a(paramDouble1), b(paramDouble2));
    c(paramg, locale);
    if (!bool)
    {
      if (parame != null)
      {
        j localj = j.a(paramg);
        if (bool) {
          break label184;
        }
        if (localj != null)
        {
          b localb = paramg.w(parame).K();
          if ((bool) || (localb != null)) {
            if (bool) {}
          }
          int i = localb.e() ? 1 : 0;
          if (!bool) {
            if (i != 0)
            {
              paramg.a(new bb(parame).l());
              localb.a(false);
            }
          }
          try
          {
            localj.c(locale, parame);
            if (bool) {
              break label184;
            }
          }
          finally
          {
            if (i != 0) {
              localb.a(true);
            }
          }
        }
      }
      paramg.gb();
    }
    label184:
    return locale;
  }
  
  protected void c(g paramg, e parame)
  {
    boolean bool = ld.E;
    if (((bool) || (L())) && ((bool) || ((paramg.w(parame).x() > 0) && ("".equals(paramg.x(parame)))))) {
      paramg.a(parame, Integer.toString(paramg.k()));
    }
  }
  
  public void mousePressedRight(double paramDouble1, double paramDouble2)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if (!bool2) {
      if (X())
      {
        this.H = false;
        if (!bool2) {
          if (!bool1) {
            return;
          }
        }
      }
      else
      {
        if (bool2) {
          break label90;
        }
      }
    }
    gf localgf;
    if (W())
    {
      localgf = lb();
      if (!bool2)
      {
        if (localgf == null) {
          return;
        }
        a(localgf, this.s, null);
      }
      if (!bool2) {
        if (!bool1) {
          return;
        }
      }
    }
    else
    {
      label90:
      localgf = eb();
    }
    if (localgf != null) {
      a(localgf, this.s, null);
    }
  }
  
  public void mouseDraggedRight(double paramDouble1, double paramDouble2)
  {
    boolean bool = ld.E;
    if ((bool) || (X()))
    {
      gf localgf = lb();
      if (!bool)
      {
        if (localgf != null) {
          this.H = true;
        }
      }
      else {
        a(localgf, this.s, this.t);
      }
    }
  }
  
  public void mouseReleasedRight(double paramDouble1, double paramDouble2)
  {
    boolean bool = ld.E;
    if (!bool)
    {
      if (!X()) {
        return;
      }
      if (bool) {}
    }
    else if (this.H)
    {
      if (bool) {
        break label49;
      }
      this.H = false;
      if (!ld.D) {
        return;
      }
    }
    label49:
    gf localgf = eb();
    if (localgf != null) {
      a(localgf, this.s, null, this.v);
    }
  }
  
  public void mouseMoved(double paramDouble1, double paramDouble2)
  {
    boolean bool = ld.E;
    g localg = k();
    sc localsc = a(paramDouble1, paramDouble2);
    uf localuf = gb();
    Object localObject;
    if (!bool) {
      if ((U()) && ((bool) || (localuf != null)))
      {
        localObject = localuf.a(this.i, paramDouble1, paramDouble2, localsc);
        if (!bool)
        {
          if (localObject != null)
          {
            localuf.a((dd)localObject);
            this.i.setToolTipText(null);
            this.i.a(qb());
            a(localuf, null, null, null);
            localuf.mouseMoved(this.u);
          }
        }
        else {
          return;
        }
      }
    }
    if ((bool) || (!ab()))
    {
      if (bool) {
        break label250;
      }
      if (!Z()) {}
    }
    else
    {
      localObject = null;
      if (!bool) {
        if (localsc.m() != null)
        {
          if ((!bool) && (!Z())) {
            break label215;
          }
          localObject = getNodeTip(localsc.m());
          break label215;
        }
      }
      if ((localsc.o() != null) && ((bool) || (ab()))) {
        localObject = getEdgeTip(localsc.o());
      }
      label215:
      if (((bool) || (localObject != null)) && (((String)localObject).length() < 1)) {
        localObject = null;
      }
      this.i.setToolTipText((String)localObject);
    }
    label250:
    if (!bool) {
      if (Y())
      {
        byte b = a(this.i, localg, paramDouble1, paramDouble2);
        if (bool) {
          break label301;
        }
        if (b != 8)
        {
          this.i.a(rf.b(b));
          return;
        }
      }
    }
    label301:
    if (!bool) {
      if (V())
      {
        e locale = localsc.m();
        if (locale != null)
        {
          if (bool) {
            break label354;
          }
          if (b(localg, locale))
          {
            this.i.a(Cursor.getPredefinedCursor(13));
            return;
          }
        }
      }
    }
    label354:
    if (!bool)
    {
      if ((Q()) && (localsc.o() != null))
      {
        this.i.a(Cursor.getPredefinedCursor(12));
        return;
      }
      if (bool) {}
    }
    else if (T())
    {
      if (localsc.r() != null)
      {
        if (bool) {
          break label437;
        }
        if ((nb() instanceof xf))
        {
          this.i.a(((xf)nb()).O());
          return;
        }
      }
    }
    label437:
    this.i.a(qb());
  }
  
  private byte a(pg parampg, g paramg, double paramDouble1, double paramDouble2)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    w localw = paramg.v();
    do
    {
      if (!localw.e()) {
        break;
      }
      e locale = localw.d();
      if (bool1) {
        break label93;
      }
      if (b(paramg, locale))
      {
        byte b = paramg.w(locale).e(paramDouble1, paramDouble2);
        if (bool2) {
          continue;
        }
        if (b != 8) {
          return b;
        }
      }
      localw.f();
    } while (!bool1);
    label93:
    return 8;
  }
  
  public void mouseClicked(double paramDouble1, double paramDouble2)
  {
    boolean bool = ld.E;
    gf localgf = db();
    if (((bool) || (O())) && ((bool) || (localgf != null)) && (!localgf.c()))
    {
      e locale = a(paramDouble1, paramDouble2).m();
      if ((locale != null) && ((bool) || (a(locale, this.s, this.v, this.w)))) {
        editNode(locale, this.w);
      }
    }
  }
  
  public void mouseEntered(MouseEvent paramMouseEvent)
  {
    this.I = -1;
    super.mouseEntered(paramMouseEvent);
  }
  
  public boolean a(dd paramdd)
  {
    boolean bool2 = ld.E;
    uf localuf = gb();
    if (paramdd != null)
    {
      if (bool2) {
        break label60;
      }
      if ((U()) && ((bool2) || (localuf != null)))
      {
        boolean bool1 = localuf.a(paramdd);
        if (!bool2) {
          if (bool1) {
            a(localuf, null, null);
          }
        }
        return bool1;
      }
    }
    label60:
    return false;
  }
  
  private void b(double paramDouble1, double paramDouble2)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if (!bool2) {
      if (bb())
      {
        if (bool2) {
          break label116;
        }
        if (kb())
        {
          localObject1 = c(paramDouble1, paramDouble2);
          if (!bool2) {
            if (c((sc)localObject1))
            {
              this.Pb = ((sc)localObject1);
              if (bool2) {
                break label112;
              }
              if (!bool1) {
                break label89;
              }
            }
          }
          this.Pb = this.Pb.a(k(), paramDouble1, paramDouble2);
          label89:
          a(this.Pb);
          this.m = this.Pb;
          if (bool2) {
            break label140;
          }
          label112:
          if (!bool1) {
            break label125;
          }
        }
      }
    }
    label116:
    this.m = a(paramDouble1, paramDouble2);
    label125:
    this.G = false;
    this.ab = paramDouble1;
    this.bb = paramDouble2;
    label140:
    Object localObject1 = k();
    if (!bool2)
    {
      if (Y())
      {
        int i = a(this.i, (g)localObject1, paramDouble1, paramDouble2);
        if (bool2) {
          break label203;
        }
        if (i != 8)
        {
          this.I = 11;
          return;
        }
      }
      if (bool2) {
        break label584;
      }
    }
    if (this.m.a())
    {
      label203:
      Object localObject2 = this.m.l();
      if (!bool2) {
        if ((localObject2 instanceof zd))
        {
          this.I = 12;
          return;
        }
      }
      if (!bool2) {
        if ((localObject2 instanceof e))
        {
          this.J = ((e)localObject2);
          if (!bool2) {
            if (b((g)localObject1, this.J))
            {
              if (bool2) {
                break label292;
              }
              this.I = 2;
              if (!bool1) {
                break label295;
              }
            }
          }
          label292:
          this.I = 1;
          label295:
          return;
        }
      }
      if (!bool2) {
        if ((localObject2 instanceof jd))
        {
          this.J = ((jd)localObject2).b().n();
          if (!bool2) {
            if (a((g)localObject1, (jd)localObject2))
            {
              if (bool2) {
                break label362;
              }
              this.I = 14;
              if (!bool1) {
                break label365;
              }
            }
          }
          label362:
          this.I = 13;
          label365:
          return;
        }
      }
      if (!bool2) {
        if ((localObject2 instanceof eb))
        {
          if (!bool2) {
            if (a((g)localObject1, (eb)localObject2))
            {
              if (bool2) {
                break label415;
              }
              this.I = 4;
              if (!bool1) {
                break label418;
              }
            }
          }
          label415:
          this.I = 3;
          label418:
          return;
        }
      }
      if (!bool2) {
        if ((localObject2 instanceof d))
        {
          if (!bool2) {
            if (a((g)localObject1, (d)localObject2))
            {
              if (bool2) {
                break label469;
              }
              this.I = 6;
              if (!bool1) {
                break label472;
              }
            }
          }
          label469:
          this.I = 5;
          label472:
          return;
        }
      }
      if (!bool2) {
        if ((localObject2 instanceof jg))
        {
          if (!bool2) {
            if (a((g)localObject1, (jg)localObject2))
            {
              if (bool2) {
                break label524;
              }
              this.I = 9;
              if (!bool1) {
                break label527;
              }
            }
          }
          label524:
          this.I = 7;
          label527:
          return;
        }
      }
      if (!bool2)
      {
        if (!(localObject2 instanceof ig)) {
          break label583;
        }
        if (bool2) {}
      }
      else if (a((g)localObject1, (ig)localObject2))
      {
        if (bool2) {
          break label579;
        }
        this.I = 10;
        if (!bool1) {
          break label582;
        }
      }
      label579:
      this.I = 8;
      label582:
      return;
    }
    label583:
    label584:
    this.I = 0;
  }
  
  private boolean c(sc paramsc)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if ((bool2) || (this.Pb != null))
    {
      if (bool2) {
        break label47;
      }
      if (paramsc.a(this.Pb)) {}
    }
    else
    {
      return true;
    }
    label47:
    if (!bool2) {
      if (this.Pb.a())
      {
        if (!bool2) {
          if (!ke.a(k(), this.Pb.l())) {
            return true;
          }
        }
        y localy = this.Pb.d();
        localy.f();
        do
        {
          if (!localy.e()) {
            break;
          }
          Object localObject = localy.j();
          if (bool1) {
            break label139;
          }
          if (ke.a(k(), localObject)) {
            return true;
          }
          localy.f();
        } while (!bool1);
        return false;
      }
    }
    label139:
    return false;
  }
  
  protected boolean kb()
  {
    boolean bool = ld.E;
    if ((bool) || (this.s != null)) {
      if (bool) {}
    }
    return (this.s.getModifiers() & cb()) != 0;
  }
  
  protected sc c(double paramDouble1, double paramDouble2)
  {
    boolean bool = ld.E;
    g localg = k();
    int i = f(localg);
    int j = -1;
    if (!bool)
    {
      if (!J())
      {
        if (bool) {
          break label84;
        }
        if (b(this.s))
        {
          if (bool) {
            break label84;
          }
          if (i != 0)
          {
            j = i;
            if (bool) {
              break label84;
            }
            if (!ld.D) {
              break label94;
            }
          }
        }
      }
      if (bool) {
        break label95;
      }
    }
    if (!R()) {
      label84:
      j ^= 0x30;
    }
    label94:
    label95:
    sc localsc = this.i.P().a(paramDouble1, paramDouble2, j, false);
    localsc = a(localsc, paramDouble1, paramDouble2);
    return localsc;
  }
  
  private int f(g paramg)
  {
    boolean bool = ld.E;
    int i = 0;
    if (!bool) {
      if (a(paramg, 9)) {
        i |= 0x9;
      }
    }
    if (!bool) {
      if (a(paramg, 2)) {
        i |= 0x2;
      }
    }
    if (!bool) {
      if (a(paramg, 48)) {
        i |= 0x30;
      }
    }
    if (!bool) {
      if (a(paramg, 64)) {
        i |= 0x40;
      }
    }
    return i;
  }
  
  private sc a(sc paramsc, double paramDouble1, double paramDouble2)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if ((bool2) || (!paramsc.b())) {
      return paramsc;
    }
    g localg = k();
    HashSet localHashSet = new HashSet();
    Object localObject1 = paramsc.d();
    if (((y)localObject1).e()) {}
    label124:
    while (bool2)
    {
      Object localObject2 = ((y)localObject1).j();
      if (bool2) {
        break label140;
      }
      if (bool1) {
        break label139;
      }
      if (a(k(), localObject2))
      {
        localHashSet.add(localObject2);
        if (bool2) {
          break label124;
        }
        if (localHashSet.size() > 1) {
          return paramsc;
        }
      }
      ((y)localObject1).f();
      if (!bool1) {
        break;
      }
    }
    label139:
    if (localHashSet.size() == 1)
    {
      label140:
      localObject1 = localHashSet.iterator().next();
      do
      {
        do
        {
          if (paramsc.l() == localObject1) {
            break;
          }
          if (bool2) {
            break label207;
          }
          paramsc = paramsc.a(localg, paramDouble1, paramDouble2);
          if (bool1) {
            return paramsc;
          }
        } while (!bool1);
      } while (bool2);
      paramsc = paramsc.a(localg, paramDouble1, paramDouble2);
    }
    label207:
    return paramsc;
  }
  
  protected String getNodeTip(e parame)
  {
    ld localld = k().w(parame);
    if ((ld.E) || (localld.x() > 0)) {
      return localld.b(0).H();
    }
    return null;
  }
  
  protected String getEdgeTip(d paramd)
  {
    tb localtb = k().t(paramd);
    if ((ld.E) || (localtb.V() > 0)) {
      return localtb.d(0).H();
    }
    return null;
  }
  
  protected void a(e parame) {}
  
  protected void a(g paramg, d paramd, eb parameb, double paramDouble1, double paramDouble2) {}
  
  protected void b(e parame)
  {
    if ((ld.E) || (a(k(), parame))) {
      c(parame);
    }
  }
  
  protected void c(e parame)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if ((bool2) || ((M()) && ((bool2) || (tb()))))
    {
      g localg = k();
      if ((bool2) || (!b(localg, parame)))
      {
        double d1;
        double d2;
        if (!bool2) {
          if (this.v != null)
          {
            d1 = a(this.v.getX());
            d2 = b(this.v.getY());
            if (bool2) {
              break label180;
            }
            if (!bool1) {
              break label167;
            }
          }
        }
        Object localObject;
        if ((bool2) || (this.w != null))
        {
          d1 = a(this.w.getX());
          d2 = b(this.w.getY());
          if (bool2) {
            break label180;
          }
          if (!bool1) {}
        }
        else
        {
          localObject = localg.w(parame);
          d1 = ((ld)localObject).A();
          d2 = ((ld)localObject).A();
        }
        label167:
        label180:
        if (!bool2)
        {
          if (isGroupNodeBorderHit(localg, parame, d1, d2, isSelectOnGroupNodeLabelEnabled())) {
            return;
          }
          if (bool2) {}
        }
        else if (d(localg))
        {
          a(true);
          localObject = a(localg, d1, d2, parame);
          if (!bool2)
          {
            if (localObject != null)
            {
              localg.gb();
              a((e)localObject);
            }
            a(false);
          }
          if (bool2) {
            break label257;
          }
          if (!bool1) {
            return;
          }
        }
        c(localg);
        label257:
        localg.gb();
      }
    }
  }
  
  public gf lb()
  {
    return this.lb;
  }
  
  public gf mb()
  {
    return this.ib;
  }
  
  public void h(gf paramgf)
  {
    this.lb = paramgf;
  }
  
  public void i(gf paramgf)
  {
    this.ib = paramgf;
  }
  
  public gf nb()
  {
    return this.jb;
  }
  
  public void j(gf paramgf)
  {
    this.jb = paramgf;
  }
  
  public gf ob()
  {
    return this.eb;
  }
  
  public void k(gf paramgf)
  {
    this.eb = paramgf;
  }
  
  public gf pb()
  {
    return this.nb;
  }
  
  public void l(gf paramgf)
  {
    this.nb = paramgf;
  }
  
  protected boolean a(MouseEvent paramMouseEvent1, MouseEvent paramMouseEvent2)
  {
    boolean bool = ld.E;
    if ((this.J == null) || (paramMouseEvent1 == null)) {
      return false;
    }
    g localg = k();
    if ((bool) || (!b(localg, this.J))) {
      if (!bool) {
        if (a(localg, this.J)) {
          if (bool) {
            break label95;
          }
        }
      }
    }
    label95:
    return isGroupNodeBorderHit(localg, this.J, a(paramMouseEvent1.getX()), b(paramMouseEvent1.getY()), isCreateEdgeOnGroupNodeLabelEnabled());
  }
  
  protected boolean a(e parame, MouseEvent paramMouseEvent1, MouseEvent paramMouseEvent2, MouseEvent paramMouseEvent3)
  {
    if (!ld.E) {}
    return paramMouseEvent3.getClickCount() == 2;
  }
  
  public Cursor qb()
  {
    return this.cb;
  }
  
  public void a(Cursor paramCursor)
  {
    this.cb = paramCursor;
  }
  
  protected boolean editNode(e parame, EventObject paramEventObject)
  {
    boolean bool = ld.E;
    gf localgf = db();
    if (!bool) {
      if ((O()) && ((bool) || (localgf != null)))
      {
        if (!bool)
        {
          if ((localgf instanceof nf))
          {
            nf localnf = (nf)localgf;
            if (!bool) {
              if (localnf.a(parame))
              {
                a(localnf, null, null);
                if (!bool) {
                  if (!localnf.editNode(parame, paramEventObject))
                  {
                    localnf.g();
                    return false;
                  }
                }
                return true;
              }
            }
            return false;
          }
          a(localgf, null, null);
        }
        return true;
      }
    }
    return false;
  }
  
  public gf rb()
  {
    if (!ld.E) {
      if (this.Yb == null) {
        this.Yb = sb();
      }
    }
    return this.Yb;
  }
  
  public void m(gf paramgf)
  {
    this.Yb = paramgf;
  }
  
  protected gf sb()
  {
    return new cg();
  }
  
  protected sc d(double paramDouble1, double paramDouble2)
  {
    return new sc(this.i, paramDouble1, paramDouble2, false, 5);
  }
  
  public void setGroupBorderWidth(int paramInt)
  {
    this.Kb = paramInt;
  }
  
  public int getGroupBorderWidth()
  {
    return this.Kb;
  }
  
  public boolean isCreateEdgeOnGroupNodeLabelEnabled()
  {
    return this.Lb;
  }
  
  public void setCreateEdgeOnGroupNodeLabelEnabled(boolean paramBoolean)
  {
    this.Lb = paramBoolean;
  }
  
  public boolean tb()
  {
    return this.Mb;
  }
  
  public void A(boolean paramBoolean)
  {
    this.Mb = paramBoolean;
  }
  
  public boolean isSelectOnGroupNodeLabelEnabled()
  {
    return this.Nb;
  }
  
  public void setSelectOnGroupNodeLabelEnabled(boolean paramBoolean)
  {
    this.Nb = paramBoolean;
  }
  
  static boolean a(d paramd, g paramg)
  {
    boolean bool = ld.E;
    k localk = e(paramg);
    if ((bool) || (localk != null)) {
      if (bool) {}
    }
    return localk.getBool(paramd);
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.j.qf

 * JD-Core Version:    0.7.0.1

 */